package com.og.ouroa.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.og.ouroa.pojo.entity.Course;
import com.og.ouroa.pojo.entity.CourseFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.og.ouroa.pojo.vo.CourseFileVO;

import java.io.InputStream;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Us
 * @since 2021-12-13
 */
public interface CourseFileService extends IService<CourseFile> {



    //文件信息存表
    CourseFileVO insert(CourseFileVO courseFileVO);

    //按名称删除
    String reomveByName(String fileName, Integer cid);

    //按表id删除
    String reomveFid(Integer fid);

    //按作者查询
    IPage<CourseFile> listBySid(Page<CourseFile> pages, Integer cid);

    //按课程查询
    IPage<CourseFile> listByCid(Page<CourseFile> pages, Integer cid);
}
